public class Weapon extends Armor {
  String name;
  int attl;
  int atth;

  public Weapon() {
  }
  public Weapon(String n, int l, int h, int s, int i, int v, int sp) {
    super(n, s, i, v, sp);
    name = n;
    attl = l;
    atth = h;
  }

  public int calcDmg() {
    Random r = new Random();
    return attl + r.nextInt(atth-attl);
  }
  public String armorInfo() {
    String r;
    r = name + "," + attl+","+ atth + ","+ vit + ","+ stn + "," + ins + "," + spd;
    return r;
  }
}  

